import service from '@/utils/request'

//===========标准管理================

//块状
export const countShanghaiStandardApi = () => {
	return service.get('/standardManagementAnalysis/countShanghaiStandard')
}

//柱子
export const countStandardChartByYearAndStandardCategoryApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countStandardChartByYearAndStandardCategory?year=' + data)
}

//表
export const countStandardFormByYearAndStandardCategoryApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countStandardFormByYearAndStandardCategory?year=' + data)
}

//===========在编标准================

//块状
export const totalCompilingStandardApi = () => {
	return service.get('/standardManagementAnalysis/totalCompilingStandard')
}

//柱子
export const countChartCompilingStandardApi = () => {
	return service.get('/standardManagementAnalysis/countChartCompilingStandard')
}

//表
export const countFormCompilingStandardApi = () => {
	return service.get('/standardManagementAnalysis/countFormCompilingStandard')
}

//===========标准应用反馈================

//柱子
export const countCurveStandardReplyApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countCurveStandardReply?type=' + data)
}

//表
export const countFormStandardReplyApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countFormStandardReply?type=' + data)
}

//===========前瞻性项目================
//块状
export const totalForwardLookingProjectsApi = () => {
	return service.get('/standardManagementAnalysis/totalForwardLookingProjects')
}

//柱子
export const countChartForwardLookingProjectByYearApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countChartForwardLookingProjectByYear?type=' + data)
}

//表
export const countFormForwardLookingProjectByYearApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countFormForwardLookingProjectByYear?year=' + data)
}

//===========前瞻性项目动态================

//柱子
export const countChartDynamicForwardLookingProjectApi = (data: any) => {
	return service.get('/standardManagementAnalysis/countChartDynamicForwardLookingProject?type=' + data)
}

//表
export const countFormDynamicForwardLookingProjectApi = () => {
	return service.get('/standardManagementAnalysis/countFormDynamicForwardLookingProject')
}
//===========标准复审概览================
//表

export const overviewEachYearStandardReviewApi = (data: any) => {
	return service.get('/standardManagementAnalysis/overviewEachYearStandardReview?type=' + data)
}

//柱子
export const overviewStandardReviewApi = () => {
	return service.get('/standardManagementAnalysis/overviewStandardReview')
}

//===========标准体系================

//饼1
export const overviewPieStandardSystemByLevelApi = () => {
	return service.get('/standardManagementAnalysis/overviewPieStandardSystemByLevel')
}
//饼2
export const overviewPieStandardSystemByTypeApi = () => {
	return service.get('/standardManagementAnalysis/overviewPieStandardSystemByType')
}

//分类总览(柱状图)
export const overviewChartStandardSystemByLevelApi = () => {
	return service.get('/standardManagementAnalysis/overviewChartStandardSystemByLevel')
}

//分层总览(柱状图)
export const overviewChartStandardSystemByTypeApi = () => {
	return service.get('/standardManagementAnalysis/overviewChartStandardSystemByType')
}

//===========体系分类================

//饼1
export const overviewSystemClassificationApi = () => {
	return service.get('/standardManagementAnalysis/overviewSystemClassification')
}

//===========系统用户分析================

//饼1
export const overviewChartSystemUserApi = () => {
	return service.get('/standardManagementAnalysis/overviewChartSystemUser')
}

//饼1
export const overviewFormSystemUSerApi = () => {
	return service.get('/standardManagementAnalysis/overviewFormSystemUSer')
}
